package com.aaa.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author W
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Log {

  private Integer id;
  private String loginName;
  private String userName;
  private String ip;
  private String className;
  private String methodName;
  private String params;
  @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
  @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
  private Date createTime;

}
